<template>
	<view class="page-container">
		<view class="nav-bar">
			<navigator class="back-btn" url="/pages/regularUser/goto/my/my">←</navigator>
			<view class="page-title">个人信息</view>
		</view>
		<view class="MainBox">
			<view class="avatar-box">
				<image class="img" src="/static/images/avatar-default.png" mode="aspectFill"></image>
				<view class="edit-tip">点击更换头像</view>
			</view>

			<view class="info-item">
				<view class="label">姓名</view>
				<view class="text">张**</view>
			</view>
			<view class="info-item">
				<view class="label">手机号码</view>
				<view class="text">13300001111</view>
			</view>
			<view class="info-item">
				<view class="label">身份证号</view>
				<view class="text">12130000434</view>
			</view>
			<view class="info-item">
				<view class="label">邮箱</view>
				<view class="text">13300001111@qq.com</view>
			</view>
			<view class="info-item">
				<view class="label">地区</view>
				<view class="text">四川</view>
			</view>
		</view>

		<navigator url="/pages/regularUser/goto/my/mygoto/ModiftInformation" class="edit-btn"
			hover-class="edit-btn-hover">
			修改个人信息
		</navigator>
	</view>
</template>

<script>
	export default {
		data() {
			return {};
		},
		onLoad() {
		},
		methods: {
				
			backPage(){
				uni.navigateTo({
					url:"/pages/regularUser/goto/my/my"
				})
			}
		}
	};
</script>

<style scoped>
	.page-container {
		background-color: #fff8f0;
		min-height: 100vh;
		padding-bottom: 30px;
	}

	.nav-bar {
		height: 80px;
		background-color: #fff8f0;
		display: flex;
		align-items: center;
		padding: 0 15px;
		border-bottom: 1px solid #ffd5b8;
	}

	.back-btn {
		font-size: 20px;
		color: #ff7d00;
	}

	.page-title {
		font-size: 18px;
		font-weight: 600;
		color: #ff7d00;
		margin-left: 10px;
	}

	.MainBox {
		background-color: #fff;
		border-radius: 12px;
		padding: 20px 15px;
		margin: 15px;
		box-shadow: 0 2px 8px rgba(255, 125, 0, 0.08);
	}

	.avatar-box {
		display: flex;
		flex-direction: column;
		align-items: center;
		margin-bottom: 25px;
	}

	.img {
		width: 80px;
		height: 80px;
		border-radius: 50%;
		border: 2px solid #ffd5b8;
		margin-bottom: 8px;
	}

	.edit-tip {
		font-size: 12px;
		color: #ff9a6c;
	}

	.info-item {
		display: flex;
		align-items: center;
		padding: 12px 0;
		border-bottom: 1px solid #fff8f0;
	}

	.info-item:last-child {
		border-bottom: none;
	}

	.label {
		font-size: 15px;
		color: #666;
		width: 80px;
	}

	.text {
		font-size: 15px;
		color: #333;
		flex: 1;
	}

	.edit-btn {
		display: block;
		width: calc(100% - 30px);
		margin: 0 auto;
		padding: 14px 0;
		background-color: #ff7d00;
		color: #fff;
		border-radius: 12px;
		font-size: 16px;
		text-align: center;
		box-shadow: 0 4px 12px rgba(255, 125, 0, 0.15);
	}

	.edit-btn-hover {
		opacity: 0.9;
		transform: scale(0.98);
	}
</style>